@extends('oms-backend::layouts.default')

@section ('title','同步日志')

@section('breadcrumbs')

    <h2>同步日志</h2>
    <ol class="breadcrumb">
        <li><a href="{!!route('admin.store.index')!!}"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li class="active">查看同步日志</li>
    </ol>

@endsection

@section('content')
    <div class="ibox float-e-margins">
        <div class="ibox-content" style="display: block;">
            <table class="table table-hover table-bordered">
                <tbody>
                <!--tr-th start-->
                <tr>
                    <td width="200">文件路径</td>
                    <td><a href="{{$log->file}}">{{$log->file}}</a></td>
                </tr>
                <tr>
                    <td>创建时间</td>
                    <td>{{$log->created_at}}</td>
                </tr>
                <!--tr-th end-->
                <tr>
                    <td>正确日志</td>
                    <td>
                        @if(count($log->success_message))
                            @foreach($log->success_message as $item)
                                {{$item}} <br>
                            @endforeach
                        @endif
                    </td>
                </tr>
                <tr>
                    <td>错误日志</td>
                    <td>
                        @if(count($log->failed_message))
                            @foreach($log->failed_message as $item)
                                {{$item}} <br>
                            @endforeach
                        @endif
                    </td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="2" class="footable-visible">
                        <a class="btn btn-primary" href="javascript:history.go(-1)">返回</a>
                    </td>
                </tr>
                </tfoot>
            </table>

        </div>
    </div>


@endsection

@section('before-scripts-end')

@stop
